Skip to content

Conversation

@pyramation
Copy link
Contributor

No description provided.

…nd correct package.json

BREAKING CHANGE: findAndRequirePackageJson() now requires a callerDir parameter.

Previously, the function used __dirname internally which always pointed to the
find-and-require-package-json package's own directory, causing it to return
the wrong package.json when called from other packages.

Now callers must pass their own __dirname (CJS) or
dirname(fileURLToPath(import.meta.url)) (ESM) to find the correct package.json.

Fixes CI failures in constructive repo where plugins were incorrectly
identified as '[email protected]' instead of their actual names.

Co-Authored-By: Dan Lynch <[email protected]>
@pyramation pyramation merged commit 953c08e into main Dec 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants